package com.retail.shopping.remote;

import com.retail.common.core.domain.Result;
import com.retail.product.common.domain.TSku;
import com.retail.shopping.remote.factory.ProductFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 功能描述:
 *
 * @version: java version 1.8
 * @author: liguangyao
 * @date: 2024-02-27 下午 8:05
 */
@FeignClient(contextId = "ProductFeign",value = "retail-product",fallbackFactory = ProductFallbackFactory.class)
public interface ProductFeign {
    @PostMapping("/skuFindId")
    public Result<TSku> skuFindId(Long cartId);

    @PostMapping("/sku/orderSkuUpdNumber")
    public Result orderSkuUpdNumber(@RequestParam("str")String str, @RequestParam("number")String number);
}
